//
//  ChatMsgCreater.h
//  SportSocial
//
//  Created by yull on 15/1/3.
//  Copyright (c) 2015年 yull. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserModel.h"
#import "ChatBaseMsg.h"

@interface ChatMsgSender : NSObject

@property (nonatomic, assign) UInt64 chatObjectId;

@property (nonatomic, copy) NSString *name;

- (void)createMsgWithText:(NSString *)text ;

- (void)createMsgWithAudioData:(NSData *)audioData
                   audioLength:(NSInteger)audioLength
                          path:(NSString *)filePath;

- (void)createMsgWithImage:(UIImage *)image;

- (NSArray *)selectChatMsg;

- (NSArray *)selectHistoryMsgWithDbId:(UInt64)dbId;

- (BOOL)updateReadWithMsgId:(UInt64)msgId;

- (NSArray *)selectAllPicMsg;

- (UIViewController *)createDetailViewController;

- (void)resendMsg:(ChatBaseMsg *)msg;

@end
